import {HTTP} from '../util/http.js'
class DetailModel extends HTTP{
  getPostById(postid){
    return this.request({
      url: 'pipipi/v1/post',
      data: {
         postid
      }
    })
  }
  addLikeById(postid){
    return this.request({
      url: 'like',
      data: {
        postid
      },
      method:'POST'
    })
  }
}
export { DetailModel }